<admintpl file="header" />
	<style>
		.center {
			text-align: center!important;
		}
	</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">日报列表</a></li>
			<li><a href="{:U('AdminPost/edit_daily_report')}" target="_self">添加日报</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('AdminPost/daily_report')}">
			时间：
			<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
			关键字： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('AdminPost/daily_report')}">清空</a>
		</form>
		<form class="js-ajax-form" action="" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>{:L('TITLE')}</th>
						<th width="50">{:L('HITS')}</th>
						<th width="50">{:L('COMMENT_COUNT')}</th>
						<th width="100">{:L('PUBLISH_DATE')}</th>
						<th width="50">{:L('STATUS')}</th>
						<th width="70">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<foreach name="posts" item="vo">
				<tr>
                    <td>{$vo.id}</td>
					<td>{$vo.post_title}</td>
					<td class="center">{$vo.post_hits}</td>
					<td class="center">{$vo.comment_count}</td>
					<td>{:date('Y-m-d H:i',strtotime($vo['post_date']))}</td>
					<td>
						<php>$status = array('0' => '未审核', '1' => '正常', '2' => '审核未通过', '4' => '草稿')</php>
						{$status[$vo['post_status']]}
					</td>
					<td>
						<a href="{:U('AdminPost/edit_daily_report',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
						<a href="{:U('AdminPost/edit_daily_report',array('id'=>$vo['id'], 'del' => 1))}" class="js-ajax-delete">{:L('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		$(document).ready(function () {
        })
	</script>
</body>
</html>